package common;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.sql.SQLOutput;

/**
 * @author lizi
 * @date 2020/4/11-22:19
 */
public class demo01 {
    public static void main(String[] args) {
        int a = 0;
        FileInputStream in = null;
        try {
            in = new FileInputStream("C:\\IdeaProjects\\CountTags\\src\\Tags\\1.jsp");
        } catch (FileNotFoundException e) {
            System.out.println("no file");

        }
        long num=0;
        int b=0;

        try {
            do {
                b=in.read();
                if(b==13) System.out.println("huiche");
                if(b==10) System.out.println("huanhang");
                num++;
            }while (b!=-1);

        } catch (IOException e) {
            e.printStackTrace();
        }
        System.out.println("number is:"+num);

    }
}
